/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2302 - For5
 * <p>Powered by webrx On 2023-06-12 17:26:55
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For6 {
    public static void main(String[] args) {
        int ss = 0;
        for (int a = 0; a < 100 / 5; a++) {
            for (int b = 0; b < 100 / 3; b++) {
                for (int c = 0; c < 100; c++) {
                    ss++;
                    if (c % 3 == 0) {
                        int t1 = a + b + c; //鸡的数量
                        int t2 = a * 5 + b * 3 + c / 3; //钱的数量
                        if (t1 == 100 && t2 == 100) {
                            System.out.printf("%d公鸡 %d母鸡 %d小鸡%n", a, b, c);
                        }
                    }
                }
            }
        }
        System.out.println(ss);
    }
}
